package com.gree.common.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@Table("SYS_DICT_DATA")
@ApiModel(description = "系统数据字典-数据")
public class SysDictData extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;
    @Id
    @ApiModelProperty("字典数据编号")
    private Long dict_code;

    @ApiModelProperty("字典数据序号")
    private Long dict_sort;

    @NotBlank(message = "字典标签不能为空")
    @Size(min = 0, max = 100, message = "字典标签长度不能超过100个字符")
    @ApiModelProperty("字典标签")
    private String dict_label;

    @NotBlank(message = "字典键值不能为空")
    @Size(min = 0, max = 100, message = "字典键值长度不能超过100个字符")
    @ApiModelProperty("字典键值")
    private String dict_value;

    @NotBlank(message = "字典类型不能为空")
    @Size(min = 0, max = 100, message = "字典类型长度不能超过100个字符")
    @ApiModelProperty("字典类型")
    private String dict_type;

    @ApiModelProperty("样式属性")
    private String css_class;

    @ApiModelProperty("表格回显样式")
    private String list_class;

    @ApiModelProperty("是否默认")
    private String is_default;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("创建者")
    private String create_by;

    @ApiModelProperty("创建时间")
    private Date create_time;

    @ApiModelProperty("更新者")
    private String update_by;

    @ApiModelProperty("更新时间")
    private Date update_time;

    @ApiModelProperty("备注")
    private String remark;
}
